"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GameObject3D = exports.GameObject2D = void 0;
const schema_1 = require("@colyseus/schema");
class GameObject2D extends schema_1.Schema {
    constructor() {
        super(...arguments);
        this.id = "";
        this.x = 0;
        this.y = 0;
        this.w = 50;
        this.h = 50;
    }
}
__decorate([
    schema_1.type("string")
], GameObject2D.prototype, "id", void 0);
__decorate([
    schema_1.type("number")
], GameObject2D.prototype, "x", void 0);
__decorate([
    schema_1.type("number")
], GameObject2D.prototype, "y", void 0);
__decorate([
    schema_1.type("number")
], GameObject2D.prototype, "w", void 0);
__decorate([
    schema_1.type("number")
], GameObject2D.prototype, "h", void 0);
exports.GameObject2D = GameObject2D;
class GameObject3D extends GameObject2D {
    constructor() {
        super(...arguments);
        this.z = 0;
        this.d = 0;
    }
}
__decorate([
    schema_1.type("number")
], GameObject3D.prototype, "z", void 0);
__decorate([
    schema_1.type("number")
], GameObject3D.prototype, "d", void 0);
exports.GameObject3D = GameObject3D;
